<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>系统信息列表</title>
	<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.tabfont01 {
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}

.font051 {
	font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}

.font201 {
	font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}

.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}

html {
	overflow-x: auto;
	overflow-y: auto;
	border: 0;
}
-->
</style>

	<link href="css/css.css" rel="stylesheet" type="text/css" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
//全选
function checkAll(name)
{
  var names=document.getElementsByName(name);
  var len=names.length;
  if(len>0)
  {
   var i=0;
   for(i=0;i<len;i++)
   names[i].checked=true;
    
  }
}

//全不选
function checkAllNo(name)
{
  var names=document.getElementsByName(name);
 var len=names.length;
 if(len>0)
  {
    var i=0;
    for(i=0;i<len;i++)
    names[i].checked=false;
  }
}

//反选
function reserveCheck(name)
{
  var names=document.getElementsByName(name);
 var len=names.length;
 if(len>0)
 {
 var i=0;
   for(i=0;i<len;i++)
   {
     if(names[i].checked)
     names[i].checked=false;
     else
     names[i].checked=true;
     
   }
 } 

}

//检查是否选中	
function checked(name)
{
  var names=document.getElementsByName(name);
 var len=names.length;
 if(len>0)
 {
 		var i=0;
	   for(i=0;i<len;i++)
	   {
	     if(names[i].checked){
	    	 return 1;
	    	 }
	   }
 	  return 2;
 } 
 return 2;
}

function xxx()	
  { 
  var a = checked("adminIdStr");
  	 if(a==1){
     	document.checkIds.submit();    
		}else if(a==2){
		alert("至少选择一项");
     return  false; 
     }
 }

 function del()
  {
   document.delSysInfo.submit();
  } 
  
  function yeweiMsgAdd() {
  	window.location.href="admin/sysInfoManage/addSysInfo.jsp";
  }
</script>
</head>
<body>
	<table id="mainpage" width="100%" border="0" cellspacing="0"
		cellpadding="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="62" background="images/nav04.gif">
						&nbsp;&nbsp;&nbsp;&nbsp;
						    <input type="button" onclick="yeweiMsgAdd()" target="mainFrame" class="right-button08" value="增加页尾信息" />
						</td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td>
				<table id="subtree1" style="DISPLAY: " width="100%" border="0"
					cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<table width="95%" border="0" align="center" cellpadding="0"
								cellspacing="0">
								
								<tr>
									<td height="40" class="font42">
									<form name="delSysInfo" id="delSysInfo" action="admin/deleSysInfo" method="post">
										<table width="100%" border="0" cellpadding="4" align="center"
											cellspacing="1" bgcolor="#464646" class="newfont03">
											<tr>
												<td height="20" colspan="9" align="center" bgcolor="#EEEEEE"
													class="tablestyle_title">系统信息列表</td>
											</tr>
											<tr align="center" bgcolor="#EEEEEE">
												<td width="10%">选择</td>
												<td height="20">类目名称</td>
												<td width="15%">操作</td>
											</tr>
											<c:forEach var="systemInfo" items="${requestScope.systemInfo }">
											<tr align="center" bgcolor="#EEEEEE">
												<td >
												<input type="checkbox" name="sysInfo" value=${systemInfo.systemId } /></td>
												<td>${systemInfo.itemName }</td>
												<td>
												<a href="admin/detailSysInfo?systemInfoId=${systemInfo.systemId }" >修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
												<a href="admin/lookSysInfo?systemInfoId=${systemInfo.systemId }" >查看</a>
												</td>
											</tr>
											</c:forEach>
										</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>
